// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import store from '@/store'
import Icon from 'vue-svg-icon/Icon.vue'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import Validate from '@/utils/validateUtil.js'
import sessionStorageUtils from '@/utils/SessionStorageUtils.js'
import './permission' // permission control
import yfuTable from '@/components/common/yfuTable.vue'
import yfuPTable from '@/components/common/yfuPTable.vue'
import yfuTree from '@/components/common/yfuTree.vue'
import yfuDialog from '@/components/common/yfuDialog.vue'
import yfuPanel from '@/components/common/yfuPanel.vue'
import yfuListPanel from '@/components/common/yfuListPanel.vue'
import yfuListCheckBoxPanel from '@/components/common/yfuListCheckBoxPanel.vue'
import yfuForm from '@/components/common/yfuForm.vue'
import yfuPdfDialog from '@/components/common/yfuPdfDialog.vue'
// 配置百度编辑器
// import '../static/ue/ueditor.config.js'
// import '../static/ue/ueditor.all.js'
// import '../static/ue/lang/zh-cn/zh-cn.js'
// import '../static/ue/ueditor.parse.min.js'
Vue.component('yfu-pdf-dialog', yfuPdfDialog)
Vue.component('yfu-form', yfuForm)
Vue.component('yfu-listcheckboxpanel', yfuListCheckBoxPanel)
Vue.component('yfu-listpanel', yfuListPanel)
Vue.component('yfu-panel', yfuPanel)
Vue.component('yfu-table', yfuTable)
Vue.component('yfu-ptable', yfuPTable)
Vue.component('yfu-tree', yfuTree)
Vue.component('yfu-dialog', yfuDialog)
Vue.use(Validate)
Vue.use(sessionStorageUtils)
Vue.component('icon', Icon)
Vue.use(ElementUI)
Vue.use(MintUI)
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
